# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2021年08月17日
"""
import re
# a1 = 'life is short,i use python'
# r1 = re.findall('life(.*)python',a)
# print(r1)

a2 = "123abc456"
r2 = re.search('([0-9]*)([a-z]*)([0-9]*)',a2)
print(r2.group()) # 不在里面写数字,就全部显示
print(r2.group(0)) # 写0和空是一样的
print(r2.group(1))
print(r2.group(2))
print(r2.group(3))






